package com.sc.nft.service;

import com.sc.nft.entity.MallOrderRefundStatusLog;
import com.sc.nft.enums.MallRefundStatusEnum;

import java.util.List;

/**
 * 售后单操作日志service
 *
 * @author liGen
 * @version 1.0
 * @date 2023/11/23 1:49 下午
 */
public interface MallOrderRefundStatusLogService {

    /**
     * 根据售后单id查询售后单操作日志
     *
     * @param orderRefundId
     * @return
     */
    List<MallOrderRefundStatusLog> getListByOrderRefundId(Long orderRefundId);

    /**
     * 查询售后单操作日志
     *
     * @param orderRefundId
     * @param changeType
     * @return
     */
    MallOrderRefundStatusLog getByOrderIdAndChangeType(Long orderRefundId, String changeType);

    /**
     * 创建售后单操作日志
     *
     * @param orderRefundId
     * @param mallRefundStatusEnum
     * @param changeMessage
     */
    void create(Long orderRefundId, MallRefundStatusEnum mallRefundStatusEnum, String changeMessage);
}
